package com.mayuran19.portal.sales.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.mayuran19.portal.common.ui.pagination.PagedResultSet;
import com.mayuran19.portal.common.ui.pagination.Pager;
import com.mayuran19.portal.sales.dao.PaymentMethodDAO;
import com.mayuran19.portal.sales.database.domain.PaymentMethod;
import com.mayuran19.portal.sales.service.PaymentMethodService;

@Service("paymentMethodService")
public class PaymentMethodServiceImpl implements PaymentMethodService {
	private PaymentMethodDAO paymentMethodDAO;

	public void setPaymentMethodDAO(PaymentMethodDAO paymentMethodDAO) {
		this.paymentMethodDAO = paymentMethodDAO;
	}

	public PaymentMethod save(PaymentMethod t) {
		return this.paymentMethodDAO.save(t);
	}

	public PaymentMethod update(PaymentMethod t) {
		return this.paymentMethodDAO.update(t);
	}

	public PaymentMethod findById(Long id) {
		return this.paymentMethodDAO.findById(id);
	}

	public PaymentMethod findById(Long id, String... include) {
		return this.paymentMethodDAO.findById(id, include);
	}

	public PaymentMethod delete(PaymentMethod t) {
		return this.paymentMethodDAO.delete(t);
	}

	public List<PaymentMethod> findAll() {
		return this.paymentMethodDAO.findAll();
	}

	public List<PaymentMethod> findAll(Pager pager) {
		return this.paymentMethodDAO.findAll(pager);
	}

	public PagedResultSet paginate(Pager pager) {
		return this.paymentMethodDAO.paginate(pager);
	}

	public Integer getAllCount() {
		return this.paymentMethodDAO.getAllCount();
	}

	public Boolean isUnique(Long id, String fieldName, String fieldValue) {
		return this.paymentMethodDAO.isUnique(id, fieldName, fieldValue);
	}

}
